<?php 

	if(!isset($_GET['i'])) {
		$_GET['i'] = '';
	}
	$i = $_GET['i'];
	if(empty($i)) {
		$i = 0;
		$percent = 0;
	} elseif($i == 'step1') {
		$percent = 5;
	} elseif($i == 'step2') {
		$percent = 10;
	} elseif($i == 'step3') {
		$percent = 30;
	} elseif($i == 'step4') {
		$percent = 65;
	} elseif($i == 'step5') {
		$percent = 100;
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"></script>
	<script type="text/javascript" src="js/typewriter.js"></script>

	<link rel="stylesheet" type="text/css" href="css/style.css" media="all" />
</head>
<body>
	<div id="logo">
		<img src="images/logo.png" />
	</div>
	<div id="container">
		<div id="bar">
			<div style="width:500px; float:left; font-size:16px; padding-top:6px; text-shadow: 1px 1px 0px #ffffff;">
				Welcome on Installation of HybridCMS
			</div>
			<div id="progress_bar" style="float:right; margin-right:50px;">
				<div id="progress" style="width:<?php echo $percent; ?>%;"></div>
				<div id="progress_text"><?php echo $percent; ?>% Complete</div>
			</div>
		</div>
        <form action="#" method="post">
			<?php 
			if(empty($_GET['i'])) {
				include('step1.php');
			} else {
				if(file_exists($_GET['i'].'.php')) {
					include($_GET['i'].'.php');
				} else {
					include('step1.php');
				}
			}
			?>
        </form>
	</div>

	
</body>
</html>